<?php

class ContentList_Shops extends ContentListElement {
	protected $id;
	protected $address;
	protected $name;
	protected $city;

	/**
	 * @param ClubRow
	 * @return void
	 */
	public function __construct($row) {
		$this->setId($row->getId());
		$this->setAddress($row->getAddress());
		$this->setName($row->getName());

		$peer = CitiesPeer::getInstance();
		$city = $peer->fetchById($row->getCityId());

		$this->setCity($city->getName());
	}
}